package com.zdp.dubbo.provider.controller;

import com.zdp.dubbo.provider.service.UserServiceImpl;
import domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author ZhengDp
 * @Date 2023/6/3 17:01
 */
@RestController
public class UserController {

    @Resource
    private UserServiceImpl userServiceImpl;

    @GetMapping("/user/{uid}")
    public User getUser(@PathVariable("uid") String uid) {
        return userServiceImpl.getUser(uid);
    }
}
